const mysql=require("mysql")

let connection=mysql.createConnection({
        user:"root",
        password:"root",
        host:"localhost",
        port:3306,
        database:"1705d"
})

connection.connect((error)=>{
    if(error){
        console.log("连接失败");
    }else{
        console.log("连接成功");
    }
})

module.exports=connection